package com.syh.jn.scm.domain.downstream.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.downstream.entity.finance.DownPaymentBill;

public class DownPaymentBillEvent extends DomainEvent<DownPaymentBill> {
  public static final String DOWN_PAYMENT_BILL_LOCK  = "downPaymentBillLock";
  public static final String DOWN_PAYMENT_BILL_UNLOCK  = "downPaymentBillUnlock";
  public static final String DOWN_PAYMENT_BILL_CREATED  = "downPaymentBillCreated";
  public static final String DOWN_PAYMENT_BILL_DESTORY  = "downPaymentBillDestory";

  public static DomainEvent receiptBillLock(Object[] values) {
    DownPaymentBillEvent downPaymentBillEvent = new DownPaymentBillEvent();
    downPaymentBillEvent.eventName = DOWN_PAYMENT_BILL_LOCK ;
    downPaymentBillEvent.values = values;
    return downPaymentBillEvent;
  }

  public static DomainEvent receiptBillUnlock(Object[] values) {
    DownPaymentBillEvent downPaymentBillEvent = new DownPaymentBillEvent();
    downPaymentBillEvent.eventName = DOWN_PAYMENT_BILL_UNLOCK ;
    downPaymentBillEvent.values = values;
    return downPaymentBillEvent;
  }

  public static DomainEvent receiptBillCreated(Object[] values) {
    DownPaymentBillEvent downPaymentBillEvent = new DownPaymentBillEvent();
    downPaymentBillEvent.eventName = DOWN_PAYMENT_BILL_CREATED ;
    downPaymentBillEvent.values = values;
    return downPaymentBillEvent;
  }

  public static DomainEvent receiptBillDestory(Object[] values) {
    DownPaymentBillEvent downPaymentBillEvent = new DownPaymentBillEvent();
    downPaymentBillEvent.eventName = DOWN_PAYMENT_BILL_DESTORY ;
    downPaymentBillEvent.values = values;
    return downPaymentBillEvent;
  }
}
